#include "Bullet.h"
#include "HelloWorldScene.h"

CBullet::CBullet(void)
{
}

CBullet::~CBullet(void)
{
}

bool CBullet::initBase()
{
	bool bRet = false;

	do 
	{


		bRet = true;
	} while (0);

	return bRet;
}

bool CBullet::move()
{
	CCSize size = CCDirector::sharedDirector()->getWinSize();

	CCFiniteTimeAction *action1 = CCMoveTo::create(1.0f, ccp( size.width,this->getPosition().y ));
	CCCallFuncN *actionF = CCCallFuncN::create(this, callfuncN_selector(HelloWorld::BulletHide));
	CCFiniteTimeAction *act = CCSequence::actions(action1, actionF, NULL);
	act->setTag(1);
	this->runAction(act);
	return true;
}
